package com.vrv;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableConfigurationProperties
public class TplinkApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(TplinkApplication.class, args);
        String property = context.getEnvironment().getProperty("test");
        System.out.println("参数: " + property);
    }

}
